package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.service.IEmployeeService;
import cn.wolfcode.crm.util.UserContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * 登录登出 已经交给shiro处理了 不需要登录控制器
 */

/*@Controller
public class LogoutController {

    @Autowired
    private IEmployeeService employeeServiceImpl;

    *//**
     * 注销处理
     * @return
     *//*
    @RequestMapping("/logout")
    public String logout() {
        //通过工具类 获取session对象
        HttpSession session = UserContext.getSession();
        session.invalidate();//销毁session
        return "redirect:/login.html";
    }
}*/
